<div class="widget-box dataTables_wrapper ">
<?php 
$this->widget('bootstrap.widgets.TbGridView', array(
	'id'=>'category-grid',
	'itemsCssClass'=>'table table-bordered table-striped table-hover',
	'summaryCssClass'=>'summary widget-title',
	'cssFile'=> Yii::app()->request->baseUrl.WWWROOT_BACKEND."/css/gridview/styles.css",
	'htmlOptions'=>array('class'=>'widget-content nopadding grid-view'),
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'firstname',
		'lastname',
		'payment',
		'quantity',
		'price',
		array(
			'header'	=> 'Status',
				'type'=> 'html',
			'value'	=> '"<span class = \"wd-cls-config-".$data->config_id."\">".$data->configCart->name."</span>"',
			'htmlOptions'	=> array('class'=>'wd-cls-status-config'),
		),
		array(
			'class'=>'CButtonColumn', 
			'header'=>'Actions',
			'template'=>'{view}{delete}',
		),
		
	),
)); 
?>

</div>
<style type = "text/css">
	.grid-view .wd-cls-status-config .wd-cls-config-1{color: green;}
	.grid-view .wd-cls-status-config .wd-cls-config-2{color: red;}
	.grid-view .wd-cls-status-config .wd-cls-config-3{color: #49afcd;}
</style>